package com.leyou.store.data.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 门店库存
 * </p>
 *
 * @author xhh
 * @since 2022-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="StoreStock对象", description="")
public class StoreStock implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "门店库存id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id")
    private Integer spuId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品属性id")
    private Integer skuId;

    @ApiModelProperty(value = "库存数量")
    private Integer amount;

    @ApiModelProperty(value = "已经销售数量")
    private Integer amountSale;

      @TableField(fill = FieldFill.INSERT)
    private Date insertTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    private Integer delted;


}
